package com.swas.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * patrol_plan
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PatrolPlan implements Serializable {
    private Integer id;

    private String planno;

    private String planname;

    private Integer pattype;

    /**
     * 周期
     */
    private Integer patcycle;

    /**
     * 生效时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startdate;

    /**
     * 失效时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enddate;

    private Date publishdate;

    /**
     * 备注
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    //非数据库字段
    private List<Integer> pointIdList;

}